package com.wdj.consume.until.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @ClassName MessageVo
 * @Description
 * @Author wdj
 * @Date 2020/11/25 21:30
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
public class MessageVo {
    Integer code;
    Object data;


    public static MessageVo SUCCESS(Object data){
       return new MessageVo(1, data);
    }

    public static MessageVo ERROR(Object data){
        return new MessageVo(0, "失败");
    }

}
